package com.mysky.client.mvp.audioplayer.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.mysky.client.mvp.audioplayer.event.MDSongStartedEvent.MDSongStartedEventHandler;

public class MDSongStartedEvent extends
		GwtEvent<MDSongStartedEventHandler> {

	public static final Type<MDSongStartedEventHandler> TYPE = new Type<MDSongStartedEventHandler>();

	public MDSongStartedEvent() {
		super();
	}

	public interface MDSongStartedEventHandler extends EventHandler {
		void handleEvent(MDSongStartedEvent event);
	}

	@Override
	public Type<MDSongStartedEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(MDSongStartedEventHandler handler) {
		handler.handleEvent(this);
	}
}